/** 首页相关 */
import request from '@/utils/request'

// 首页数据
export function indexData(params) {
	return request({
		url: '/technicianapp/Index/index',
		method: 'get',
		params
	})
}

// 获取工作时间
export function workTime(params) {
	return request({
		url: '/technicianapp/Index/busyHour',
		method: 'get',
		params
	})
}

// 获取搭搭工作时间
export function workTimeDada(params) {
	return request({
		url: '/technicianapp/Technician/getTechnicianDaysTimes',
		method: 'get',
		params
	})
}

// 获取公告
export function notice(data) {
	return request({
		url: '/technicianapp/my.index/notice',
		method: 'post',
		data
	})
}
// 获取公告详情
export function noticeDetails(params) {
	return request({
		url: '/technicianapp/my.index/noticeDetails',
		method: 'get',
		params
	})
}
// 获取公告列表
export function noticeList(params) {
	return request({
		url: '/technicianapp/my.index/noticeList',
		method: 'get',
		params
	})
}

// 获取应用版本情况
export function appVersion(params) {
	return request({
		url: '/technicianapp/Index/getAppUpdateConfig',
		method: 'get',
		params
	})
}